package com.aos.erp.gov.ex.model;

import com.aos.erp.gov.ex.enums.GovConfigType;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;


@Getter
@Setter
@TableName("T_GOV_EX_CONFIG")
public class GovExConfig implements Serializable {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.INPUT)
    private long id;



    @ApiModelProperty("省编码")
    @TableField("province_code")
    private String provinceCode;


    @ApiModelProperty("省名称")
    @TableField("province_name")
    private String provinceName;



    @ApiModelProperty("市编码")
    @TableField("city_code")
    private String cityCode;


    @ApiModelProperty("市名称")
    @TableField("city_name")
    private String cityName;


    @ApiModelProperty("类型")
    @TableField("config_type")
    private GovConfigType configType = GovConfigType.manual;


    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;


    @ApiModelProperty("修改时间")
    @TableField("update_time")
    private Date updateTime;


    public String getConfigTypeName() {
        return configType.getDesc();
    }
}
